package com.glenet.salary.action;

import java.util.List;

import com.glenet.salary.dao.HrCompanyDao;
import com.glenet.salary.dao.HrEmployeeExpandDao;
import com.glenet.salary.dao.HrPreSalaryDao;
import com.glenet.salary.dao.HrPreSalaryDetailDao;
import com.glenet.salary.dao.HrSubTemplateDao;
import com.glenet.salary.entities.HrPreSalaryDetail;

@SuppressWarnings("serial")
public class HrPreSalaryDetailAction extends MultifileUploadAction {

	private HrCompanyDao companyDao = new HrCompanyDao();
	private HrSubTemplateDao subTemplateDao = new HrSubTemplateDao();
	private HrPreSalaryDao inDao = new HrPreSalaryDao();
	private HrPreSalaryDetailDao outDao = new HrPreSalaryDetailDao();
	private HrEmployeeExpandDao empExpandDao = new HrEmployeeExpandDao();

	public String index() throws Exception {
		System.out.println("---------");
		List<HrPreSalaryDetail> list = outDao.list(offset, limit);
		req.setAttribute("list", list);
		return SUCCESS;
	}

	public String none() {
		List<HrPreSalaryDetail> list = outDao.list(offset, limit);
		req.setAttribute("list", list);
		return SUCCESS;
	}

	@Override
	protected String importing() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected String toUpload() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

}
